import request from '@/utils/request'

const model = "/console/system/attach/"

export function attachPage(query) {
  return request({
    url: model + 'list',
    method: 'get',
    params: query
  })
}

export function addAttach(data) {
  return request({
    url: model,
    method: 'post',
    data
  })
}

export function deleteAttach(ids) {
  return request({
    url: model + `/${ids}`,
    method: 'delete',
  })
}
